package ooday05;
/**static final常量演示*/
public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.PI);
        //Loo.PI=3.5,编译错误，常量不能被改变,静态变量可以改变
        System.out.println(Loo.COUNT);
        Loo.num=6;
        System.out.println(Loo.num);
    }


}
class Loo{
    public static int num=5;
    public static final int COUNT=5;
    public static final double PI=3.14159;
}
